package com.bcx.service.impl;

import com.bcx.mapper.CategoryMapper;
import com.bcx.pojo.Category;
import com.bcx.service.CategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Resource
    CategoryMapper categoryMapper;

    @Override
    public List<Category> selectAll() {

        return categoryMapper.selectByExample(null);
    }
}
